// CPPTemplate.h

#pragma once

using namespace System;
using namespace System::Collections::Generic;
using namespace ProteinInsightInterface;
using namespace System::Windows::Forms;
using namespace System::Text;
using namespace System::Drawing;
using namespace Microsoft::DirectX;
using namespace Microsoft::DirectX::Direct3D;


namespace ProteinInsightPlugin {

	public ref class MyPlugin : public MarshalByRefObject, IProteinInsightPlugin
	{
	public:
		virtual public void Run(IProteinInsight ^ PI)
		{
			try
			{
				//    write plug in code here.
				//    Example: PI->Open("1a31");
				//    
				


			}
			catch ( Exception ^ e )
			{
				PI->OutputMsg(e->ToString());
			}
		}

		property String ^ Name { virtual String ^ get() { return "ProteinInsight CPP Plug-In Template"; } }
	};
}


